#header {
	height: banner-height;
	position: relative;
	border-bottom: 1px solid color-border;
	overflow: hidden;

	&:before, &:after {
		content: '';
		position: absolute;
		left: 0;
		right: 0;
		height: 40px;
	}

	&:before {
		top: 0;
		background: linear-gradient(rgba(0, 0, 0, 0.05), transparent);
	}

	&:after {
		bottom: 0;
		// background: linear-gradient(transparent, rgba(0, 0, 0, 0.2))
	}
}

#header-outer {
	height: 100%;
	position: relative;
}

#header-inner {
	// overflow: hidden;
	height: 40px;
	z-index: 100;
}

.header-inner-fixed {
	position: fixed;
	top: 0;
	left: 0;
	background-color: white;
	margin: 0;
	width: 100%;
	padding-left: 20px;
	box-shadow: 0px 0px 5px #eee;
	animation-fill-mode: forwards;
	animation: showHeader 0.4s ease-in-out;

	#nav-search-btn {
		margin-right: 20px;
	}
}

#banner {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url(banner-url) center #fff fixed;
	background-size: cover;
	z-index: -1;
}

#header-title {
	text-align: center;
	height: logo-size;
	position: absolute;
	top: 50%;
	left: 0;
	margin-top: logo-size * -0.5;
}

$logo-text {
	text-decoration: none;
	color: #000;
	font-weight: 300;
	// text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

#logo-wrap {
	position: relative;
	height: 53px;
	animation: showLogo 1s ease;
	animation-fill-mode: forwards;
}

#logo {
	@extend $logo-text;
	font-size: logo-size;
	line-height: logo-size;
	letter-spacing: 2px;
}

#subtitle {
	position: relative;
	@extend $logo-text;
	font-size: subtitle-size;
	line-height: subtitle-size;
	letter-spacing: 1px;
	animation: showSub 1s ease;
	animation-fill-mode: forwards;
}

#subtitle-wrap {
	margin-top: subtitle-size;
	height: 21px;
	font-size: 14px;
}

#main-nav {
	float: left;
	// margin-left: -15px;
}

$nav-link {
	float: left;
	color: #000;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.2s;
	display: block;
	padding: 7.5px 15px;
	height: 25px;
	font-weight: 500;
	line-height: 22px;

	&:hover {
		background-color: #fcc;
		color: white;
	}
}

.nav-icon {
	@extend $nav-link;
	font-family: font-icon;
	text-align: center;
	font-size: font-size;
	width: font-size;
	height: 100%;
	// padding: 13px 15px;
	position: relative;
	cursor: pointer;
}

.main-nav-link {
	position: relative;
	@extend $nav-link;
	font-weight: 500;
	letter-spacing: 1px;
	display: flex;
	align-items: center;
	vertical-align: middle;

	@media mq-mobile {
		display: none;
	}
}

#main-nav-toggle {
	display: none;

	&:before {
		content: '\f0c9';
	}

	@media mq-mobile {
		display: block;
		margin-left: -15px;
	}
}

#sub-nav {
	float: right;
}

#nav-rss-link {
	&:before {
		content: '\f09e';
	}
}

#nav-search-btn {
	@media mq-normal {
		// margin-right: 20px;
	}

	@media mq-mobile {
		margin-right: -15px;
	}

	&:before {
		content: '\f002';
	}
}

#search-form-wrap {
	position: absolute;
	top: 5px;
	width: 150px;
	height: 30px;
	right: -150px;
	opacity: 0;
	transition: 0.2s ease-out;

	&.on {
		opacity: 1;
		right: 0px;

		@media mq-normal {
			right: 20px;
		}
	}

	@media mq-mobile {
		width: 100%;
		right: -100%;
	}
}

.search-data-box {
	position: absolute;
	text-align: center;
	min-height: 20px;
	width: 140px;
	top: 35px;
	left: 0px;
	background-color: white;
	z-index: 999;
	border-radius: 10px;
	padding-left: 5px;
	padding-right: 5px;
	padding-top: 5px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
	font-size: 12px;

	@media mq-mobile {
		width: 100%;
		padding-left: 0px;
		padding-right: 0px;
	}
}

.hide-search {
	opacity: 0;
}

.search-box-item {
	padding-bottom: 5px;
	padding-left: 10px;
	padding-right: 10px;
	overflow: hidden;

	a:hover {
		color: btn-color;
		font-weight: bold;
	}
}

.search-form {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: #fff;
	padding: 5px 15px;
	border-radius: 15px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.search-form-input {
	border: none;
	background: none;
	color: color-default;
	width: 100%;
	font: 13px font-sans;
	outline: none;

	&::-webkit-search-results-decoration, &::-webkit-search-cancel-button {
		-webkit-appearance: none;
	}
}

.search-form-submit {
	position: absolute;
	top: 50%;
	right: 10px;
	margin-top: -7px;
	font: 13px font-icon;
	border: none;
	background: none;
	color: #bbb;
	cursor: pointer;

	&:hover, &:focus {
		color: #777;
	}
}

.tocenter {
	margin-top: 100px;
	color: #ccc;
	cursor: pointer;
	transition: all 0.4s ease;

	&:hover {
		transform: scale(1.4);
		color: btn-color;
	}
}

@keyframes showLogo {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@keyframes showSub {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@keyframes showHeader {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}